package action;

import com.opensymphony.xwork2.ActionSupport;
import dao.CategoryDAO;
import model.CategoryModel;

import java.util.List;


public class BaseAction extends ActionSupport {

    protected List<CategoryModel> cateList;

    public List<CategoryModel> getCateList() {
        return cateList;
    }

    public void setCateList(List<CategoryModel> cateList) {
        this.cateList = cateList;
    }

    /**
     * 显示页头
     * @return
     */
    public String header(){
        CategoryDAO dao = new CategoryDAO();
        this.cateList = dao.findAllCategory();
    	return "header";
    }

}
